<?php


namespace App\Admin\Server;


use App\Models\Combination;
use Dcat\Admin\Layout\Content;
use Dcat\Admin\Widgets\Dropdown;

class DropdownMenu
{
     public function make()
    {
        $title = [
            1=>'开启',
            2=>'关闭'
        ];
//        return $title;

//        $title = $data['title'];
        $dropdown = Dropdown::make($title)
            ->button('分类导航')->click(

            );
//            ->buttonClass('btn btn-white  waves-effect') // 设置按钮样式
////            ->map(function ($label, $key) {
////                // 格式化菜单选项
//////                $url = admin_url('categories/'.$key);
////
////
////                return $label;
//            );

        return $dropdown;
    }

}